package com.bee2c.platform.web.test.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.alibaba.fastjson.JSONObject;
import com.bee2c.pub.util.bean.ProcessResult;

@FeignClient(name = "com.bee2c.osgi.invoke", fallback = BeeOsgiClientFallback.class)
public interface BeeOsgiClient {

	static String rootPath = "/beeosig";

	@RequestMapping(value = rootPath + "/client", method = RequestMethod.POST)
	public ProcessResult client(@RequestParam("bcId") String bcId, @RequestParam("groupId") Integer groupId,
			@RequestBody JSONObject paraJson);

	@RequestMapping(value = rootPath + "/platform", method = RequestMethod.POST)
	public ProcessResult platform(@RequestParam("bcId") String bcId, @RequestBody JSONObject paraJson);
}
